package kr.hkit.powerjava.chapter13;

import java.awt.Color;
import java.awt.HeadlessException;

import javax.swing.JFrame;
import javax.swing.JPanel;

public class MyWorkFrame extends JFrame{
	public MyWorkFrame() throws HeadlessException {
		init();
	}

	private void init() {
		setSize(600, 150);
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setTitle("자바 피자");
		
		JPanel jpanel = new JPanel();
		jpanel.add(new HeadPanel());
		jpanel.add(new BtnPanel());
		jpanel.setBackground(Color.PINK);
		add(jpanel);
		setVisible(true);
	}
}